-
Notifications
You must be signed in to change notification settings - Fork 190
Support decoding of binary QR codes #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
libzbar support raw binary data since 0.23.1. See more: mchehab/zbar@59e0ed1 Refer to KlaasJelmer's modification to add configuration option ZBAR_CFG_BINARY to pyzbar. See more: NaturalHistoryMuseum#82 And modify the conversion method of symbol data to support binary data.
|
Is there a good way to get attention to this pull request? This would be quite a nice and useful workaround for issues in Europe, where the base library zbar mis-interprets the encoding:
My workaround for now is the following, which could be avoided if one could just get the binary representation of the QR codes: |
|
Getting the same issue. Hope this pull request gets more attention as soon as possible! |
|
I have the same problem and am having trouble. I strongly hope that this PR will get some attention. |
|
Please could we get this PR merged into the master? |
|
Even with this PR, binary support is incomplete: null bytes are treated as string terminators. |
When the ZBar decoder encounters binary data, it guesses the data encoding while converting it to text. This behavior destroys other types of data.
Version 0.23.1 of the ZBar library supports decoding binary QR codes using configuration option
ZBAR_CFG_BINARY. This PR allows settings this flag from thedecode()function